/* 侧边导航栏样式 */
.page-body {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.left-nav {
    display: flex;
    flex-direction: column;
    background:
        linear-gradient(135deg, rgba(102, 126, 234, 0.4) 0%, rgba(118, 75, 162, 0.4) 100%),
        url('https://static.igem.wiki/teams/5710/background/nav2.avif') center/cover no-repeat;
    backdrop-filter: blur(20px);
    padding: 1rem 0;
    width: 300px;
    /* 增加宽度 */
    max-width: 300px;
    /* 限制最大宽度 */
    height: fit-content;
    position: sticky;
    top: 6rem;
    border: none;
    border-radius: 12px;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
    z-index: 90;
}

.left-nav-title {
    font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #735c52;
    text-align: center;
    margin: 0 1rem 1rem 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
    line-height: 1.3;
    position: relative;
}

.left-nav-item {
    display: flex;
    align-items: center;
    padding: 1rem 1rem;
    margin: 0 1rem 0.5rem 1rem;
    color: #735c52;
    text-decoration: none;
    border-radius: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Inter', 'SF Pro Text', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.95rem;
    font-weight: 450;
    letter-spacing: -0.01em;
    line-height: 1.5;
    position: relative;
    cursor: pointer;
    border-left: 3px solid transparent;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.left-nav-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.left-nav-item:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-left-color: rgba(255, 255, 255, 0.5);
    transform: translateX(4px);
    backdrop-filter: blur(10px);
}

.left-nav-item.active {
    background: rgba(255, 255, 255, 0.15);
    color: #000000;
    border-left-color: rgba(255, 255, 255, 0.5);
    transform: translateX(4px);
    backdrop-filter: blur(10px);
}

.right-text {
    flex: 1;
    min-width: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .page-body {
        flex-direction: column;
    }

    .left-nav {
        width: 100%;
        position: static;
        margin-bottom: 20px;
    }
}

/* 原有样式保持不变 */
.page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.text-content {
    margin-bottom: 40px;
}

.text-content-h1 {
    font-size: 28px;
    font-weight: bold;
    margin: 30px 0 20px;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 10px;
}

.text-content-h2 {
    font-size: 22px;
    font-weight: bold;
    margin: 25px 0 15px;
    color: #34495e;
}

.text-content-h3 {
    font-size: 18px;
    font-weight: bold;
    margin: 20px 0 10px;
    color: #2c3e50;
}

.text-content-p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #333;
    text-align: justify;
}

.image-container {
    margin: 20px 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* 单个图片缩小比例 */
.single-image .text-img {
    max-width: 70%;
    height: auto;
    display: block;
    margin: 0 auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

/* 并排图片样式 */
.images-grid .text-img,
.images-grid-three .text-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.figure-caption {
    font-size: 14px;
    text-align: center;
    margin-top: 8px;
    color: #666;
    font-style: italic;
}

/* 并排图片网格布局 - 确保中心对齐 */
.images-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 20px 0;
    align-items: center;
    justify-items: center;
}

.images-grid-three {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    margin: 20px 0;
    align-items: center;
    justify-items: center;
}

/* 竖版排列容器 */
.vertical-images-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 20px 0;
    align-items: center;
}

.vertical-images-container .text-img {
    max-width: 80%;
    height: auto;
    display: block;
    margin: 0 auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.sequence-box {
    background-color: #f5f5f5;
    border-left: 4px solid #3498db;
    padding: 15px;
    margin: 15px 0;
    font-family: monospace;
    white-space: pre-wrap;
    overflow-x: auto;
}

.highlight-text {
    font-weight: 800;
    color: #c62828;
    font-family: 'Arial Black', 'Arial Bold', Gadget, sans-serif;
    text-shadow: 0.5px 0.5px 1px rgba(0, 0, 0, 0.1);
}

.reference-list {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.reference-item {
    margin-bottom: 12px;
}

.reference-authors {
    font-weight: bold;
}

.reference-title {
    font-style: italic;
}

.reference-journal {
    font-weight: bold;
}

.reference-year {
    font-weight: normal;
}

.reference-volume {
    font-weight: normal;
}

@media (max-width: 768px) {
    .images-grid {
        grid-template-columns: 1fr;
    }

    .images-grid-three {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .single-image .text-img {
        max-width: 90%;
    }

    .vertical-images-container .text-img {
        max-width: 95%;
    }

    .figure-caption,
    .reference-list {
        font-size: 13px;
    }

    .text-content-h1 {
        font-size: 24px;
    }

    .text-content-h2 {
        font-size: 20px;
    }

    .text-content-h3 {
        font-size: 17px;
    }

    .text-content-p {
        font-size: 15px;
    }
}

.pdf-container {
    margin: 20px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    overflow: hidden;
}